package net.qhzw.vip.qiyu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import net.qhzw.vip.qiyu.entity.Transport;
import org.springframework.cache.annotation.CacheEvict;

public interface TransportService extends IService<Transport> {

    void insertTransportAndTransfee(Transport transport);

    void updateTransportAndTransfee(Transport transport);

    void deleteTransportAndTransfeeAndTranscity(Long[] ids);

    Transport getTransportAndAllItems(Long transportId);

    @CacheEvict(cacheNames = "TransportAndAllItems", key = "#transportId")
    default void removeTransportAndAllItemsCache(Long transportId){}

    Transport getByTransName(String responsibleArea);


}
